package com.yyy.dm.provider.controller;

import com.yyy.dm.provider.service.ItemProviderService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ItemProviderController {
    @Resource
    private ItemProviderService itemProviderService;

    @PostMapping("/findItemNameById")
    public String findItemNameById(@RequestBody Long itemId){
        return itemProviderService.findItemNameById(itemId);
    }

}
